package com.qys.livesMall.shop.mapper;

import com.qys.livesMall.shop.modal.entity.ShopOrderComment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.data.repository.query.Param;

/**
 * <p>
 * 商品评论表 Mapper 接口
 * </p>
 *
 * @author gmx
 * @since 2023-06-30
 */
public interface ShopOrderCommentMapper extends BaseMapper<ShopOrderComment> {

    int haveLiked(@Param("commentId") Long commentId, @Param("userId") Long userId);

    void saveLike(@Param("commentId") Long commentId, @Param("userId") Long userId);
}
